<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="${root!}/static/css/layout.css" rel="stylesheet"
	type="text/css" />
<link href="${root!}/static/css/skin.css" rel="stylesheet"
	type="text/css" />
<link href="${root!}/static/css/dialog.css" rel="stylesheet"
	type="text/css" />

<script src="${root!}/static/Js/jquery-1.4.2.js" type="text/javascript"></script>

<script src="${root!}/static/js/layout.js" type="text/javascript"></script>

<script src="${root!}/static/js/dialog.js" type="text/javascript"></script>

<script src="${root!}/static/js/form.js" type="text/javascript"></script>

<script>
	var RootPath = "${root!}";
	var FormCodeUrl = RootPath + "/frame/type";
	var FormSubmitMethod = "save";
	var FormSubmitAction = "${action!}";

	$(document).ready(function() {

		$("#lstFieldType").val("${bean.fieldType!}");

		if ("${bean.isKey!}" == "1") {
			$("#chkIsKey").attr("checked", "true");
		}
		if ("${bean.isAllowNull!}" == "1") {
			$("#chkIsAllowNull").attr("checked", "true");
		}

		$("#lstIsEnable").val("${bean.isEnable!}");

	});

	function submitClick() {
		if (!CheckForm()) {
			return false;
		} else {
			SubmitForm();
		}
	}
</script>

</head>
<body>
	<form id="myform">
		<div class="container">
			<div class="fullwidth">
				<div class="buttonGroup h30">
					<input type="button" value="确定" id="btnSubmit"
						onclick="submitClick();" /> <input type="button" value="取消"
						id="btnInsert" onclick="CloseWindow();" />
				</div>
			</div>
			<div class="hiddencalc fullwidth h4"></div>
			<div class="fullwidth calcheight onlyscrolly">
				<div class="formcontainer calcwidth">
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">类型编号：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTypeId"
								name="txtTypeId" value="${bean.typeId!}" readonly />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">数据类型：</font>
						</div>
						<div class="control calcwidth">
							<select id="lstFieldType" name="lstFieldType" class="calcwidth">
								<option value="">请选择</option>
								<#if typeList??><#list typeList as m>
								<option value="${m.code!}">${m.text!}</option>
								</#list></#if>
							</select><span class="hiddencalc inputresult init"
								minlength="1" maxlength="50" controlname="选择表"
								bindcontrol="lstFieldType"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">类型长度：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtFieldLength"
								name="txtFieldLength" value="${bean.fieldLength!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="50"
								validateregular="数字" controlname="类型长度"
								bindcontrol="txtFieldLength"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">是否主键：</font>
						</div>
						<div class="control calcwidth">
							<input type="checkbox" id="chkIsKey" name="chkIsKey" value="1" />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">允许为空：</font>
						</div>
						<div class="control calcwidth">
							<input type="checkbox" id="chkIsAllowNull" name="chkIsAllowNull"
								value="1" />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">是否可用：</font>
						</div>
						<div class="control calcwidth">
							<select id="lstIsEnable" name="lstIsEnable" class="calcwidth">
								<option value="">请选择</option>
								<option value="0">不可用</option>
								<option value="1">可用</option>
							</select><span class="hiddencalc inputresult init" minlength="1"
								maxlength="50" controlname="是否可用" bindcontrol="lstIsEnable"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">MsAccess：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTypeMsAccess"
								name="txtTypeMsAccess" value="${bean.typeMsAccess!}" /><span
								class="hiddencalc inputresult init" minlength="0" maxlength="50"
								controlname="MsAccess" bindcontrol="txtTypeMsAccess"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">MsSQL：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTypeMsSQL"
								name="txtTypeMsSQL" value="${bean.typeMsSQL!}" /><span
								class="hiddencalc inputresult init" minlength="0" maxlength="50"
								controlname="MsSQL" bindcontrol="txtTypeMsSQL"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">MySQL：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTypeMySQL"
								name="txtTypeMySQL" value="${bean.typeMySQL!}" /><span
								class="hiddencalc inputresult init" minlength="0" maxlength="50"
								controlname="MySQL" bindcontrol="txtTypeMySQL"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">Oracle：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTypeOracle"
								name="txtTypeOracle" value="${bean.typeOracle!}" /><span
								class="hiddencalc inputresult init" minlength="0" maxlength="50"
								controlname="Oracle" bindcontrol="txtTypeOracle"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">顺序号：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtOrderNumber"
								name="txtOrderNumber" value="${bean.orderNumber!}" /><span
								class="hiddencalc inputresult init" validateregular="数字"
								minlength="1" maxlength="50" controlname="顺序号"
								bindcontrol="txtOrderNumber"></span>
						</div>
					</div>

				</div>
				<div class="scrollwidth hiddencalc" style="display: none;">
					<!--滚动条占位宽度-->
				</div>
			</div>
		</div>
	</form>
</body>
</html>
